package it.polimi.authentication.ejb.usermanagement;

import it.polimi.authentication.ejb.usermanagement.dto.PacchettoHotelDTO;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the pacchetto_hotel database table.
 * 
 */
@Entity
@Table(name="pacchetto_hotel")
@NamedQueries({
	@NamedQuery(name="PacchettoHotel.findAll", query="SELECT p FROM PacchettoHotel p"),
	@NamedQuery(name="PacchettoHotel.findPacchetto", query="SELECT p FROM PacchettoHotel p WHERE p.nomeHotel=:nomeHotel"),
	@NamedQuery(name="PacchettoHotel.findEntityHotel", query="SELECT h FROM PacchettoHotel ph, Hotel h WHERE ph.nomeHotel=h.nomeHotel AND ph.IDPacchetto=:idPacchetto"),
	@NamedQuery(name="PacchettoHotel.findHotel", query="SELECT p.nomeHotel FROM PacchettoHotel p WHERE p.IDPacchetto=:idPacchetto")
})
public class PacchettoHotel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int numriga;

	private int IDPacchetto;

	private String nomeHotel;

	public PacchettoHotel() {
	}

	public PacchettoHotel(PacchettoHotelDTO PacchettoHotelDTO){
		super();
		this.nomeHotel=PacchettoHotelDTO.getNomeHotel();
		this.IDPacchetto=PacchettoHotelDTO.getIDPacchetto();
	}
	public int getNumriga() {
		return this.numriga;
	}

	public void setNumriga(int numriga) {
		this.numriga = numriga;
	}

	public int getIDPacchetto() {
		return this.IDPacchetto;
	}

	public void setIDPacchetto(int IDPacchetto) {
		this.IDPacchetto = IDPacchetto;
	}

	public String getNomeHotel() {
		return this.nomeHotel;
	}

	public void setNomeHotel(String nomeHotel) {
		this.nomeHotel = nomeHotel;
	}

}